home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 67 / IOPROG_67A.ISO / soft / Tools / mwsppv4.exe / INSERT UNESCAPE.SCRIPT < prev    next >
Encoding:
Text File  |  2002-11-23  |  1009 b   |  33 lines

  1. !!Script
  2. // Copyright ⌐ 1997-1998 - Modelworks Software
  3.  
  4. // Insert script helper for:
  5.  
  6. /**
  7. @Object: JavaScript 
  8. @Function: unescape returns the ASCII string for the specified value. 
  9. The unescape function is not a method associated with any object, but is part of the 
  10. language itself.
  11. @Syntax: unescape("string");
  12. <BR><I>string</I> is a string containing characters in either of the 
  13. following forms:
  14. <BR>"<I>integer</I>", where <I>integer</I> is a number between 0 and 255 (decimal)
  15. <BR>"<I>hex</I>", where <I>hex</I> is a number between 0x0 and 0xFF (hexadecimal)
  16. <P>The string returned by the unescape function is a series of characters in the ISO 
  17. Latin-1 character set.
  18. @Summary: unescape - returns the ASCII string for the specified value
  19. */
  20.  
  21. function DoCommand()
  22. {
  23.   var editor = getActiveEditor();
  24.   if (editor)
  25.   {
  26.     var selection = editor.getSelection();
  27.     editor.replace("unescape(string)", selection);
  28.     editor.setActive("Insert unescape");
  29.   }
  30. }
  31.  
  32. !!/Script
  33.